IF EXISTS (SELECT * from dbo.sysobjects WHERE id = object_id(N'[dbo].[SelectDistritoByIdProvincia]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	drop procedure [dbo].[SelectDistritoByIdProvincia]
GO

CREATE PROCEDURE [dbo].[SelectDistritoByIdProvincia]
(
	@IdProvincia int
)
AS
BEGIN
	SET NOCOUNT ON

	SELECT
	[IdDistrito],
	[IdProvincia],
	[Nombre],
	[Flete],
	[Estado]
	FROM [Distrito]
	WHERE [IdProvincia] = @IdProvincia

	SET NOCOUNT OFF
END

GO
